import * as types from '../../mutation-types/seller/index.js';

const state = {
    seller_get_list : [],
    currentPage: 1,
    totalCount: 0,
    pageSize: 50,
    value: '',
    keyword: '',
    id: '',
    if_search: false
};

const mutations = {
	[types.SELLER_GET_LIST] (state , {seller_get_list}){
		state.seller_get_list = seller_get_list;
	},
    [types.SELLER_CURRENTPAGE] (state , {currentPage}){
        state.currentPage = currentPage;
    },
    [types.SELLER_PAGESIZE] (state , {pageSize}){
        state.pageSize = pageSize;
    },
    [types.SELLER_TOTALCOUNT] (state , {totalCount}){
        state.totalCount = totalCount;
    },
    [types.SELLER_SEARCH_VALUE] (state , {value}){
        state.value = value;
    },
    [types.SELLER_SEARCH_KEYWORD] (state , {keyword}){
        state.keyword = keyword;
    },
    [types.SELLER_SEARCH_ID] (state , {id}){
        state.id = id;
    },
    [types.SELLER_IF_SEARCH] (state , {if_search}){
        state.if_search = if_search;
    },
};

export default {
	state ,
	mutations
};
